home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / CSCANF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  365 b   |  14 lines

  1. /* cscanf.c --- p 513 */
  2. /* compile this program with the -ml option */
  3. #include <conio.h>
  4. main()
  5. {
  6.     int i;
  7.     char far *far_ptr;
  8.     cprintf("Enter memory address to dump in the form "
  9.                 "ssss:oooo\r\n(Try F0000:E0000)  ");
  10.     cscanf(" %p", &far_ptr);
  11.     cprintf("Dump of 25 bytes at %p\r\n", far_ptr);
  12.     for(i=0; i<25; i++)
  13.         cprintf("%Fc", *(far_ptr+i));
  14. }